import React, { Component } from 'react'
// 
// 路由
import {withRouter} from "react-router-dom"
import styles from "./index.module.scss"
class Register extends Component {
    login=(params) => {
        this.props.history.push("/login")
    }
    render() {
        return (
            <div className={styles.register}>
                <input type="text" className={styles.phone} placeholder="手机"/>
                <div className={styles.msgSection}>
                <input className={styles.msg} type="number"/>

                <button className={styles.msgSend}>发送验证码</button>
                </div>
                <input type="password" className={styles.password} placeholder="密码"/>
                
                <button className={styles.btn1}>注册</button>
                <button className={styles.btn2} onClick={this.login.bind(this,"login")}>登录</button>
            </div>
        )
    }
}
export default withRouter(Register)